using System;
using System.Collections.Generic;
using System.Text;

using Geekees.App.HRAssistant.BOL.Common;
using Geekees.App.HRAssistant.Core.Domain;
using Geekees.App.HRAssistant.DataInterface;
using Geekees.App.HRAssistant.DataInterface.Common;

namespace Geekees.App.HRAssistant.BOL
{
	public class UserBo : AbstractBo<User, int>
	{
		#region Set default dao

		/// <summary>
		/// set default dao
		/// </summary>
		public UserBo() : base( new FactoryManager().GetDaoFactory().GetUserDao() ) { }

		#endregion

		#region SetDao implementation
		/// <summary>
		/// customize dao
		/// </summary>
		/// <param name="factoryManager"></param>
		public override void SetDao( IFactoryManager factoryManager )
		{
			base._dao = factoryManager.GetDaoFactory().GetUserDao();
		}
		#endregion

		#region public methods
		public List<User> GetActivedUsers( int startRow, int maxRows, string[] asc, string[] desc, out int totalRows )
		{
			List<User> Users = ( (IUserDao)base._dao ).GetActivedUsers( startRow, maxRows, asc, desc, out totalRows );
			return Users;
		}

		public List<User> GetAllUsers( int startRow, int maxRows, string[] asc, string[] desc, out int totalRows )
		{
			List<User> Users = ( (IUserDao)base._dao ).GetAllUsers( startRow, maxRows, asc, desc, out totalRows );
			return Users;
		}
		#endregion

		#region protected methods

		#endregion

		#region private methods

		#endregion
	}
}
